import api from "../utils/request";
const baseUrl = "/api/api/sys/redisKey";
export function list() {
  return api.get(`${baseUrl}/list`);
}

export function listKeys(key) {
  return api.get(`${baseUrl}/listKeys`, {
    params: {
      key: key,
    },
  });
}

export function getRedisValue(key) {
  return api.get(`${baseUrl}/getRedisValue`, {
    params: {
      key: key,
    },
  });
}

export function del(key) {
  return api.delete(`${baseUrl}/del`, {
    params: {
      key: key,
    },
  });
}
